package com.kirk.crawler.core.constants;

/**
 *  <p> SystemConstants.java </p>
 *
 * @Author      kirkliu
 * @Date        2020-08-29 22:21
 * @version     1.0.0
 * @Description 系统常量
 */
public class SystemConstants {

    // 获取系统路径
    public static final String SYSTEM_ROOT_PATH = System.getProperties().getProperty("user.dir");

    // 系统文件路径分隔符
    public static final String SYSTEM_SEPARATOR = System.getProperties().getProperty("file.separator");

    // 文件协议
    public static final String PROTOCOL_FILE = "file:";

    public static final String PLUGIN_PROPERTIES_KY_PATH = "path";
    public static final String PLUGIN_PROPERTIES_KY_ID = "Id";
    public static final String PLUGIN_PROPERTIES_KY_NAME = "Name";
    public static final String PLUGIN_PROPERTIES_KY_VERSION = "Version";
    public static final String PLUGIN_PROPERTIES_KY_PROVIDER = "Provider";
    public static final String PLUGIN_PROPERTIES_KY_BEANXMLPATH = "BeanXmlPath";
    public static final String PLUGIN_PROPERTIES_KY_REQUIRES = "Requires";
    public static final String PLUGIN_PROPERTIES_KY_ACTIVE = "Active";
    public static final String PLUGIN_PROPERTIES_KY_LOGOIMAGEPATH = "LogoImagePath";

    /**
     * 国际化配置路径
     */
    public static final String PACKAGE_I18N = "settings" + getDot() + "i18n";
    /**
     * 国际化配置名称
     */
    public static final String I18N_BUNDLE_NAME = PACKAGE_I18N + getDot() + "CowSwingAppLocal";

    /**
     * 系统图标配置路径
     */
    public static final String PACKAGE_IMAGE_PATH = "settings" + getDot()  + "image";

    /**
     * 系统图标配置名称
     */
    public static final String IMAGE_BUNDLE_NAME = PACKAGE_IMAGE_PATH + getDot() + "CowSwingAppResources";

    /**
     * 系统异常信息配置路径
     */
    public static final String PACKAGE_EXCEPTION_PATH = "settings" + getDot()
            + "exception";
    /**
     * 系统异常信息配置名称
     */
    public static final String EXCEPTION_BUNDLE_NAME = PACKAGE_EXCEPTION_PATH + getDot() + "CowSwingAppException";


    public static String getDot() {
        return ".";
    }
}
